home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / APC.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.1 KB  |  57 lines

  1. # Quarterdeck Accessspoint Corporation Script
  2. # Mike Bryant II   11/29/95
  3.  
  4. STRING username
  5. STRING password
  6. STRING IPaddress
  7. STRING framing
  8.  
  9. # TRACE ON
  10.  
  11. SetTimeout 60
  12.  
  13. # Get username from access method
  14. CfgGetValue "Username" username
  15. IF result = 0 THEN
  16.     ABORT "Can't load Username from qdeck.ini"
  17. ENDIF
  18.  
  19. # get password from access method
  20. CfgGetValue "Password" password
  21. IF result = 0 THEN
  22.     ABORT "Can't load Password from qdeck.ini"
  23. ENDIF
  24.  
  25. # get framing from access method
  26. CfgGetValue "Framing" framing
  27. IF result = 0 THEN
  28.     ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
  29. ENDIF
  30.  
  31. DELAY 2
  32.  
  33. CommWaitFor     "sername"
  34.     CommSend username
  35.     CommSend "%r"
  36.  
  37. CommWaitFor     "assword"
  38.     CommSend password
  39.     CommSend "%r"
  40.  
  41. CommWaitFor     "(PPP/SLIP)"
  42. IF framing = "MPSLIP" THEN
  43.     CommSend "slip%r"
  44.     CommWaitFor "our address is"
  45.         CommReadIPaddr IPAddress                            # IP address should be next word
  46.         CfgSetValue    "IPAddress" IPaddress    # store the IP address
  47.     PRINT "IPAddress ="; IPAddress
  48. ELSE
  49.     CommSend "ppp%r"
  50. ENDIF
  51.  
  52. DELAY 2
  53.  
  54. PRINT "Connected"
  55.  
  56. END
  57.